<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('All Pages Sidebar')) {} else { ?> 
	<div class="page_sidebar_warp">
		<h3 class="widget-title">Recent Posts</h3>
		<ul>
			<?php 
				wp_reset_query();
				query_posts("cat=0&showposts=4&paged=1&orderby=comment_count");
				while(have_posts()) : the_post();
			?>
			<li><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></li>
			<?php endwhile; ?>
		</ul>
	</div>
<?php } ?>